  using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

namespace project.formaspago_dir
{
    public partial class listado_formaspago : System.Web.UI.Page
    {
   
        protected void Page_Load(object sender, EventArgs e)
        {
            
            if (!Page.IsPostBack)
            {
                List<formaspago> lista = new List<formaspago>();
                lista = formaspago.getList();
     
                    Repeater1.DataSource = lista;
                Repeater1.DataBind();    
            }
    
        }
        protected void btnBuscar_Click(object sender, EventArgs e)
        {
            List<formaspago> lista = new List<formaspago>();
            lista = formaspago.getListByBusquedaGeneral(txtBusqueda.Text);
            Repeater1.DataSource = lista;
            Repeater1.DataBind();
        }
  
  
    }
}
